package com.wy.springbootblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wy.springbootblog.pojo.Category;
import com.wy.springbootblog.pojo.Result;
import com.wy.springbootblog.pojo.SearchBean;

import java.util.List;

public interface CategoryService extends IService<Category> {
    public Result<Void> saveCategory(Category category);

    public Result<Void> deleteCategory(Integer id);

    Result<List<Category>> categoryList(SearchBean<Category> searchBean);

    Result<Void> updateCategory(Category category);
}
